package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.membersystem.mapper.GoodsInfoMapper;
import java.util.List;
import com.bdqn.membersystem.pojo.GoodsInfo;
import com.bdqn.membersystem.service.GoodsInfoService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class GoodsInfoServiceImpl implements GoodsInfoService{

    @Resource
    private GoodsInfoMapper goodsInfoMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return goodsInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(GoodsInfo record) {
        return goodsInfoMapper.insertSelective(record);
    }

    @Override
    public GoodsInfo selectByPrimaryKey(Long id) {
        return goodsInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(GoodsInfo record) {
        return goodsInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<GoodsInfo> list) {
        return goodsInfoMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<GoodsInfo> list) {
        return goodsInfoMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(GoodsInfo record) {
        return goodsInfoMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(GoodsInfo record) {
        return goodsInfoMapper.insertOrUpdateSelective(record);
    }

}
